package com.abel.roommanager.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.abel.roommanager.pojo.Repair;

public interface RepairMapper {
    @Select("select * from repair where roomno=#{roomno}")
	List<Repair> findLossByRid(int roomno);
    @Insert("insert into repair values(default,#{errordesc},default,#{lossdate},#{roomno})")
	int addRepair(Repair repair);
    @Update("update repair set issolve=2 where id=#{id}")
	int repairDevice(int id);

}
